<extend name="Public:Base" />
<block name="title">
    <title>美住 - 客栈申请</title>
</block>
<block name="extendHead">
    <link rel="stylesheet" href="__PUBLIC__/src/meizhu/HotelApply/index.css""/>
</block>
<block name="document">
    <div id="doc" data-side-menu-id="sideMenuMainAccount" data-side-menu-toggle-id="collapseHotelToggle">
        <div id="doc-header">
            <include file="Public:Include_navbar" />
        </div>
        <div id="doc-center">
            <div class="container">
                <div class="col-xs-3-15">
                    <include file="Public:Include_sideMenu" />
                </div>
                <div class="col-xs-12-15">
                    <nav class="navbar navbar-default navbar-custom-fitin">
                        <div class="container-fluid">
                            <p class="navbar-text custom-navber-text">客栈管理员列表</p>
                        </div>
                    </nav>
                    <nav class="navbar navbar-default navbar-custom-fitin nav-padding">
                        <div class="container-fluid">
                            <div class="collapse navbar-collapse">

                            </div>
                        </div>
                    </nav> 
                    <div class="well well-custom-has-navbar">
                        <div class="well-custom-body">
                            <div class="table-responsive">
                                <table class="table table-bordered table-hover" id="questionTalbe">
                                    <thead>
                                        <tr>
                                            <th>客栈管理员</th>
                                            <th>手机号</th>
                                            <th>创建时间</th>
                                            <th class="col-xs-1-15">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <foreach name="adminHotels" item="vo">
                                        <tr>
                                            <td>{$vo.adminName}</td>
                                            <td>{$vo.adminMobile}</td>
                                            <td>{$vo.createtime|substr=0,10}</td>
                                            <td>
                                                <button class="btn btn-default  btn-sm view" data-toggle="modal" data-json='{:json_encode($vo);}' data-target="#viewModel">客栈列表</button>
                                            </td>
                                        </tr>
                                    </foreach>
                                    <tr class="padtopx"><td colspan="5">{$page}</td></tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div id="doc-footer">
            <include file="Public:Include_footer" />
        </div>
    </div>
    <div class="modal fade" id="viewModel">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title">客栈列表</h4>
                </div>
                <div class="modal-body">
                    <div class="form-container">
                        <div class="custom-form-body">
                            <form class="form-horizontal">
                                <div class="form-group">
                                    <div class="table-responsive">
                                        <table class="table table-bordered table-hover" id="questionTalbe">
                                            <thead>
                                                <tr>
                                                    <th>ID</th>
                                                    <th>客栈名称</th>
                                                    <th>所属城市</th>
                                                    <th>所属区域</th>
                                                    <th>到期时间</th>
                                                </tr>
                                            </thead>
                                            <tbody  id="hotelBody">

                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <input type="hidden"  id="requestId" value="" />
                    <button type="button" class="btn btn-default" id="requestCannel" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>

    <!--end of doc-->
</block>

<block name="extendFootJs">
    <script type="text/javascript" src="__PUBLIC__/src/meizhu/common.js"></script>    
    <script type="text/javascript" src="__PUBLIC__/uclbrt/js/jquery-plugin/tooltip.js"></script>
    <script type="text/javascript" src="__PUBLIC__/src/meizhu/Account/index.js"></script>
</block>

